
import { request } from '@ruifox-cms/utils'

// 根据folderId查询分页
export function shareResourceSelectPage(params) {
  return request({
    url: '/resource/shareResource/selectPage',
    method: 'get',
    params
  })
}
// 根据文件id查详情
export function selectResourceById(params) {
  return request({
    url: '/resource/shareResource/selectById',
    method: 'get',
    params
  })
}

// 新增文件
export function shareResourceCreate(data) {
  return request({
    url: '/resource/shareResource/create',
    method: 'post',
    data
  })
}
// 批量创建
export function shareResourceCreateList(data) {
  return request({
    url: '/resource/shareResource/createList',
    method: 'post',
    data
  })
}
// 删除文件
export function shareResourceDelete(data) {
  return request({
    url: '/resource/shareResource/delete',
    method: 'post',
    data
  })
}
// 批量删除文件
export function shareResourceDeleteList(data) {
  return request({
    url: '/resource/shareResource/deleteList',
    method: 'post',
    data
  })
}
// 修改文件
export function shareResourceUpdate(data) {
  return request({
    url: '/resource/shareResource/update',
    method: 'post',
    data
  })
}
// 文件排序
export function folderResourceUpdateSort(data) {
  return request({
    url: '/resource/folderResource/updateSort',
    method: 'post',
    data
  })
}